OptionalBooleanSetting

Represents an optional setting that can be either enabled or disabled.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun isAvailable(): Boolean
Tells whether the setting is currently available.
Link copied to clipboard
abstract fun isEnabled(): Boolean
Tells whether the setting is currently enabled, if isAvailable returns true, otherwise returned value is undefined.
Link copied to clipboard
abstract fun isUpdating(): Boolean

Tells whether the setting is updating.

Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Sets the setting value.
Link copied to clipboard
abstract fun toggle()
Toggles the current setting value, i.e.